#
# Be sure to run `pod lib lint SWNetworkKit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'SWNetworkKit'
  s.version          = '0.0.2'
  s.summary          = '阿里API网关iOS SDK.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: 包含阿里API网关iOS SDK.
                       DESC

  s.homepage         = 'https://gitlab.geely.com/p-admp/ios-common-kit/ios-aligatewaykit'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '545554720@qq.com' => 'Liheng.Xue@geely.com' }
  s.source           = { :git => 'https://devops.geely.com/Products/AGP/_git/sweet-ios-SWNetworkKit', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '9.0'
  
#  if ENV['mode'].to_s.include? "lib"
  puts "SWNetworkKit成果物模式集成".blue
  s.source           = { :http => 'https://geely-admp-oss.oss-cn-hangzhou.aliyuncs.com/sweet-app-release/ios/SWNetworkKit.framework-0.0.2.zip' }
  s.ios.vendored_framework   = 'SWNetworkKit.framework'
#  else
#  s.source_files = 'SWNetworkKit/Classes/**/*'
#  end

  s.dependency 'AFNetworking'
  s.dependency 'SocketRocket'
  
  s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
  s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
end
